using System.Collections.Generic;
using Newtonsoft.Json;

namespace Betfair.Api
{
    public sealed class RunnerCatalogue
    {
        public RunnerCatalogue(long id, string name, double handicap, int sortPriority,
            IDictionary<string, string> metadata)
        {
            Id = id;
            Name = name;
            Handicap = handicap;
            SortPriority = sortPriority;
            Metadata = metadata;
        }

        [JsonProperty("selectionId")]
        public long Id { get; private set; }

        [JsonProperty("runnerName")]
        public string Name { get; private set; }

        [JsonProperty("handicap")]
        public double Handicap { get; private set; }

        [JsonProperty("sortPriority")]
        public int SortPriority { get; private set; }

        [JsonProperty("metadata")]
        public IDictionary<string, string> Metadata { get; private set; }
    }
}